import { useRouteProps } from '@umijs/max';
import { ConfigProvider, FloatButton } from 'antd';
import { useMemo } from 'react';
import { themeConfig } from './config';
import './index.less';
import styles from './index.less';
import PageContainer from './PageContainer';
export default function Layout() {
  // const access = useAccess();
  const routeProps = useRouteProps();

  const targetRoute = useMemo(() => {}, [routeProps]);

  return (
    <>
      <ConfigProvider
        // prefixCls="ant"
        theme={{
          ...themeConfig,
        }}
      >
        <div className={styles.header}>
          <PageContainer />
        </div>
        {/* <div className={styles.fixTop}><CustomHeader /></div> */}
        {/* <div className={styles.fixColor}></div> */}

        <FloatButton.BackTop visibilityHeight={300}></FloatButton.BackTop>
      </ConfigProvider>
    </>
  );
}
